<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title>登录失败页面</title>
<link type="text/css" rel="stylesheet" media="all" href="${appName}/css/global.css" />
<link type="text/css" rel="stylesheet" media="all" href="${appName}/css/global_color.css" />
<script language="javascript" type="text/javascript">
	var timer;
	//启动跳转的定时器
	function startTimes() {
		timer = window.setInterval(showSecondes, 1000);
	}

	var i = 5;
	function showSecondes() {
		if (i > 0) {
			i--;
			document.getElementById("secondes").innerHTML = i;
		} else {
			window.clearInterval(timer);
			location.href = "${appName}/sys/tologin.do";
		}
	}

	//取消跳转
	function resetTimer() {
		if (timer != null && timer != undefined) {
			window.clearInterval(timer);
			location.href = "${appName}/sys/tologin.do";
		}
	}
</script>
</head>
<body class="error_page" onload="startTimes();">
	<h1 id="error">
		遇到错误，&nbsp;<span id="secondes">5</span>&nbsp;秒后将自动跳转，立即跳转请点击&nbsp; <a
			href="javascript:resetTimer();">返回</a>
	</h1>
</body>
</html>